package com.oms.module.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.oms.module.common.domain.MenuEntity;

import java.util.List;

/**
 * @Author zhanghailong QQ38592077
 * @Description TODO
 * @Date 2020/6/11 14:39
 */
public interface MenuMapper extends BaseMapper<MenuEntity> {
    /**
     *  根据用户id获取用户菜单
     * @param id
     * @return
     */
    List<MenuEntity> getMenusById(long id);

    /**
     * 查询所有菜单
     * @return
     */
    List<MenuEntity> selectAll();
}
